---
// Redirect from base to /en/ pages
import { englishPages } from '~/content';
import { stripLangFromSlug } from '~/util';

export async function getStaticPaths() {
	return englishPages.map((page) => {
		return {
			params: {
				enRedirectSlug: stripLangFromSlug(page.slug),
			},
			props: {
				englishSlug: page.slug,
			},
		};
	});
}
---

<meta http-equiv="refresh" content={`0;url=/${Astro.props.englishSlug}`} />
